package com.copm.demonstrationsystem.config;

import org.hibernate.dialect.MySQL5InnoDBDialect;

/**
 * @author chuyunfei
 * @date: 2018/5/17
 * @description: 配置数据库的字符编码为：utf8mb4
 */
public class MySQL5InnoDBDialectUtf8mb4 extends MySQL5InnoDBDialect {

    @Override
    public String getTableTypeString() {
        return "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci";
    }
}
